class Solution(object):
    def isPrefixOfWord(self, sentence, searchWord):
        s = sentence.split(' ')
        m = len(searchWord)
        for i, word in enumerate(s):
            if len(word) >= m and searchWord == word[:m]:
                return i + 1
        return -1